package com.gp.model.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import java.util.Date;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.FieldFill;

import java.io.Serializable;


/**
 * <p>
 * 
 * </p>
 *
 * @author 弓成龙
 * @since 2017-11-26
 */
@TableName("base_order_coupon")
public class BaseOrderCoupon extends Model<BaseOrderCoupon> {

    private static final long serialVersionUID = 1L;

	private long id;
	private String code;
	private String name;
	private Integer classtype;
	private Integer value;
	private Integer limitvalue;
	private String uselimit;
	private Date starttime;
	private Date endtime;
	private String granttype;
	private Integer sheetnumbertype;
	private Integer sheetnumber;
	private Integer usercount;
	private Integer state;
	/**
     * 自定义填充的创建时间
     */
    @TableField(fill = FieldFill.INSERT)// 该注解插入忽略验证，自动填充
	private Date createTime;
    /**
     * 自定义填充的最后一次修改时间
     */
    @TableField(fill = FieldFill.UPDATE)// 该注解插入忽略验证，自动填充
	private Date lastModifiedTime;
    public long getId() {
      return id;
    }
    public void setId(long id) {
      this.id = id;
    }
    public String getCode() {
      return code;
    }
    public void setCode(String code) {
      this.code = code;
    }
    public String getName() {
      return name;
    }
    public void setName(String name) {
      this.name = name;
    }
    public Integer getClasstype() {
      return classtype;
    }
    public void setClasstype(Integer classtype) {
      this.classtype = classtype;
    }
    public Integer getValue() {
      return value;
    }
    public void setValue(Integer value) {
      this.value = value;
    }
    public Integer getLimitvalue() {
      return limitvalue;
    }
    public void setLimitvalue(Integer limitvalue) {
      this.limitvalue = limitvalue;
    }
    public String getUselimit() {
      return uselimit;
    }
    public void setUselimit(String uselimit) {
      this.uselimit = uselimit;
    }
    public Date getStarttime() {
      return starttime;
    }
    public void setStarttime(Date starttime) {
      this.starttime = starttime;
    }
    public Date getEndtime() {
      return endtime;
    }
    public void setEndtime(Date endtime) {
      this.endtime = endtime;
    }
    public String getGranttype() {
      return granttype;
    }
    public void setGranttype(String granttype) {
      this.granttype = granttype;
    }
    public Integer getSheetnumbertype() {
      return sheetnumbertype;
    }
    public void setSheetnumbertype(Integer sheetnumbertype) {
      this.sheetnumbertype = sheetnumbertype;
    }
    public Integer getSheetnumber() {
      return sheetnumber;
    }
    public void setSheetnumber(Integer sheetnumber) {
      this.sheetnumber = sheetnumber;
    }
    public Integer getUsercount() {
      return usercount;
    }
    public void setUsercount(Integer usercount) {
      this.usercount = usercount;
    }
    public Integer getState() {
      return state;
    }
    public void setState(Integer state) {
      this.state = state;
    }
    public Date getCreateTime() {
      return createTime;
    }
    public void setCreateTime(Date createTime) {
      this.createTime = createTime;
    }
    public Date getLastModifiedTime() {
      return lastModifiedTime;
    }
    public void setLastModifiedTime(Date lastModifiedTime) {
      this.lastModifiedTime = lastModifiedTime;
    }
    public static long getSerialversionuid() {
      return serialVersionUID;
    }
    @Override
    protected Serializable pkVal() {
      return this.id;
    }

}